﻿<%@ Control Language="C#"  %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
	<div class="articlebox">
	<%HtmlBlock method = "processList"; %>
		<%Conditional on="IsLast==True"; %><div class="LastChild"><%EndConditional; %>
		<%Conditional on="IsFirst==True"; %><div class="FirstChild"><%EndConditional; %>
		<%Conditional on="Depth==0"; %>
		    <div class="articlebox0">
        		<h2 class="Title">
		    	    <asp:HyperLink id="title" runat="server"  NavigateUrl="$navLink$"/>
		    	</h2>
				<div class="Summary">
				<swf:ReadOnlyText ID="summary" runat="server"  Width="90%"/>
				</div>
			</div>
			<div class="clearer"></div>
		<%EndConditional; %>
		<%Conditional on="Depth==1"; %>
		<div class="articlebox1">
			<table>
			<tr>
				<td colspan="2">
					<h3 class="Title"><asp:HyperLink id="title" runat="server"  NavigateUrl="$navLink$"/>
					</h3>
				</td>
			</tr><tr>
				<td style="vertical-align:top">
					<div class="Summary">
					<swf:ReadOnlyText ID="summary" runat="server"  Width="90%"/>
					</div>
					<div class="ReadMore"><asp:HyperLink id="counts_author" runat="server"  NavigateUrl="$navLink$" Text="$readMoreText$" /></div>
				</td>
				<td style="vertical-align:top">
					<div class="MediaArea">
					<asp:HyperLink ID="HyperLink1" runat="server" 
						ImageUrl="/$mediaCacheName$/$imageRes$/$primaryPicture.name$" 
						EnableViewState="false"  NavigateUrl="$navLink$"/>
					</div>
				</td>
			</tr>
			</table>
		</div>	
		<%EndConditional; %>
		<%Conditional on="IsLast==True"; %></div><%EndConditional; %>
		<%Conditional on="IsFirst==True"; %></div><%EndConditional; %>
    <%EndHtmlBlock; %>
    </div>
